import { request } from '@/utils/request';
export function getCarouse() {
  return request.get<any>({
    url: "/api/carouse",
  });
}
export function friendLink() {
  return request.get<any>({
    url: "/api/friendLink",
  });
}
export function getNews(data) {
  return request.get<any>({
    url: "/api/news",
    params: data,
  });
}
export function newsList(data) {
  return request.get<any>({
    url: "/api/newsList",
    params: data,
  });
}
export function partner() {
  return request.get<any>({
    url: "/api/partner",
  });
}
export function configKey(data) {
  return request.get<any>({
    url: "/api/configKey",
    params: {
      configKey: data,
    },
  });
}

export function contentConfig(data) {
  return request.get<any>({
    url: "/api/contentConfig",
    params: {
      configKey: data,
    },
  });
}
export function detail(data) {
  return request.get<any>({
    url: "/api/detail",
    params: data,
  });
}
export function searchBook(data) {
  return request.post<any>({
    url: "/api/searchBook",
    data: data,
  });
}
export function myBook(data) {
  return request.post<any>({
    url: "/api/myBook",
    data: data,
  });
}
export function backImage(data) {
  return request.post<any>({
    url: "/api/backImage",
    data: data,
  });
}
export function updateMember(data) {
  return request.post<any>({
    url: "/api/updateMember",
    data: data,
  });
}
export function updateFirstPassword(data) {
  return request.post<any>({
    url: "/api/updateFirstPassword",
    data: data,
  });
}
